package com.weixinli.beans;

import java.io.Serializable;

public class UserInfo implements Serializable{
	private static final long serialVersionUID = 1L;
	private int w_uid;//用户编号
	private String w_pwd;//用户密码
	private String w_email;//用户邮箱
	
	@Override
	public String toString() {
		return "UserInfo [w_uid=" + w_uid + ", w_pwd=" + w_pwd + ", w_email="
				+ w_email + "]";
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public String getW_pwd() {
		return w_pwd;
	}

	public void setW_pwd(String w_pwd) {
		this.w_pwd = w_pwd;
	}

	public String getW_email() {
		return w_email;
	}

	public void setW_email(String w_email) {
		this.w_email = w_email;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((w_email == null) ? 0 : w_email.hashCode());
		result = prime * result + ((w_pwd == null) ? 0 : w_pwd.hashCode());
		result = prime * result + w_uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserInfo other = (UserInfo) obj;
		if (w_email == null) {
			if (other.w_email != null)
				return false;
		} else if (!w_email.equals(other.w_email))
			return false;
		if (w_pwd == null) {
			if (other.w_pwd != null)
				return false;
		} else if (!w_pwd.equals(other.w_pwd))
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}

	public UserInfo(int w_uid, String w_pwd, String w_email) {
		super();
		this.w_uid = w_uid;
		this.w_pwd = w_pwd;
		this.w_email = w_email;
	}

	public UserInfo() {
		super();
	}
}
